﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.XtraEditors;
using DevExpress.Skins;
using System.ComponentModel;
using DevExpress.LookAndFeel;
using KNS.Invoice.UI.Settings;

namespace KNS.Invoice.UI
{
    public class KNSFormBase : XtraForm
    {
        private IContainer components;
        public DefaultLookAndFeel defaultLookAndFeel;

        public KNSFormBase()
        {
            this.InitializeComponent();
            SkinManager.EnableMdiFormSkins();
            SkinManager.EnableFormSkins();
            defaultLookAndFeel.LookAndFeel.SkinName = KNSCommonSettings.SkinName;
        }
        
        protected override void Dispose(bool disposing)
        {
            if (this.components != null && disposing)
                this.components.Dispose();
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            this.defaultLookAndFeel = new DefaultLookAndFeel(this.components);
            //base.SuspendLayout();
        }
    }
}
